package e2q.portal.domain.uPortal;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

import org.hibernate.annotations.GenericGenerator;

import e2q.web.orm.Persistent;

/**
 * UpSequence entity.
 * 
 * @author MyEclipse Persistence Tools
 */

@Entity
@Table(name = "up_sequence")
public class UpSequence extends Persistent {

	// private Department department;
	@Transient
	private Long id;
	@Id
	@GeneratedValue(generator = "pk")
	@Column(name = "SEQUENCE_NAME")
	@GenericGenerator(name = "pk", strategy = "e2q.web.orm.IdGenerator")
	private String sequenceName;

	@Column(name = "SEQUENCE_VALUE")
	private Integer sequenceValue;

	// Constructors

	/** default constructor */
	public UpSequence() {
	}

	/** minimal constructor */
	public UpSequence(String sequenceName) {
		this.sequenceName = sequenceName;
	}

	/** full constructor */
	public UpSequence(String sequenceName, Integer sequenceValue) {
		this.sequenceName = sequenceName;
		this.sequenceValue = sequenceValue;
	}

	// Property accessors

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getSequenceName() {
		return this.sequenceName;
	}

	public void setSequenceName(String sequenceName) {
		this.sequenceName = sequenceName;
	}

	public Integer getSequenceValue() {
		return this.sequenceValue;
	}

	public void setSequenceValue(Integer sequenceValue) {
		this.sequenceValue = sequenceValue;
	}

}